Accord Software, Inc.

tutorial16/matrix.h




/*
 * Accord Software, Inc.
 *
 * Tutorial 16
 */

#define MTRX_PROGNUM    0x20000000 + 16
#define MTRX_VERSNUM    1

/*
 * X by Y matrix 
 */

#define X       3
#define Y       3

#define elem(a) (a)->m[y][x]

struct matrix {
	int m[X][Y];
};

/*
 * typedef - remember to do one thing at a time.
 */
typedef struct matrix MATRIX;
typedef struct matrix *Mp;
MATRIX addmatrix();

struct matrixname {
	char *name;
	MATRIX data;
};

typedef struct matrixname MatrixName;

[ Home | Tutorials | main.c | matrix.c ]
E-Mail:webmaster@accord.com
[P-077] Updated March 14, 1996
Copyright © 1993-1996 Accord Software, Inc. All rights reserved.